//大数据分析平台
import request from "@/api/request.js";

//获取每周的信访统计量
export const getWeekService = () => {
  return request.get("/api-self/data/getWeekPetitionCounts");
};

//获取每月的信访统计量
export const getMonthService = () => {
  return request.get("/api-self/data/getMonthPetitionCounts");
};

//获取每天的信访统计量
export const getDayService = () => {
  return request.get("/api-self/data/getDailyPetitionCounts");
};

//按地区的信访统计量
export const getAreaService = () => {
  return request.get("/api-self/data/getPetitionCountByAddress");
};

//信访量综合统计分析接口
export const coreService = () => {
  return request.get("/api-self/data/getPetitionInfoData");
};

//获取每天的细分状态数量
export const dayStatusService = Data => {
  return request.get(`/api-self/data/getPetitionCountByStatus/${Data}`);
};

//工作量统计分析接口
export const workLoadService = Data => {
  return request.get("/api-self/api/statistics/workload", Data);
};

//获取本周的细分状态数量
export const weekStatusService = () => {
  return request.get("/api-self/data/getPetitionInfoDataByWeek");
};

//获取关键词词频统计
export const keywordCountsService = () => {
  return request.get("/api-self/data/getKeywordsCounts");
};

//获取所有的信访标题关键词统计信息
export const allKeywordCountsService = () => {
  return request.get("/api-self/data/getKeywordsCounts");
};

//标题情感分析
export const emotionService = () => {
  return request.get("/api-self/data/getTitleEmotionAnalysis");
};
